package org.csu.jpetmanage.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.stereotype.Repository;

@Builder
@NoArgsConstructor
@AllArgsConstructor
@Data
//注入依赖
@Repository
//对应数据库中的表名，使用注解的方式
@TableName(value = "bannerdata")
public class Bannerdata {
    //定义表的主键值
    @TableId(value = "fa", type = IdType.AUTO)
    //大类
    private String fa;

    public String getFa() {
        return fa;
    }

    public void setFa(String fa) {
        this.fa = fa;
    }

    public String getLa() {
        return ba;
    }

    public void setLa(String la) {
        this.ba = ba;
    }

    //图片
    @TableField(value = "ba")
    private String ba;
}
